package org.wishwork.api.supplier;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wishwork.api.supplier.query.SupplierQueryApi;
import org.wishwork.api.supplier.upload.SupplierUploadApi;
import org.wishwork.context.Context;

/**
 * @description: 供应商API
 * @author: WangYX
 * @create: 2022-04-08 15:48
 * @Version: 1.0.0
 **/
public class SupplierApi {

    private static final Logger log = LoggerFactory.getLogger(SupplierApi.class);

    private Context context;

    private final SupplierQueryApi supplierQueryApi;

    private final SupplierUploadApi supplierUploadApi;

    public SupplierApi(Context context) {
        this.context = context;
        this.supplierQueryApi = new SupplierQueryApi(context);
        this.supplierUploadApi = new SupplierUploadApi(context);
    }

    /**
     * 供应商查询
     *
     * @return
     */
    public SupplierQueryApi query() {
        return this.supplierQueryApi;
    }

    /**
     * 供应商上传
     */
    public SupplierUploadApi upload() {
        return this.supplierUploadApi;
    }


}
